Optimal. Leaf size=73 \[ -\frac {a (A b-a B) \left (a+b x^2\right )^{3/2}}{3 b^3}+\frac {(A b-2 a B) \left (a+b x^2\right )^{5/2}}{5 b^3}+\frac {B \left (a+b x^2\right )^{7/2}}{7 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {457, 78}
\begin {gather*} \frac {\left (a+b x^2\right )^{5/2} (A b-2 a B)}{5 b^3}-\frac {a \left (a+b x^2\right )^{3/2} (A b-a B)}{3 b^3}+\frac {B \left (a+b x^2\right )^{7/2}}{7 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 457
Rubi steps
\begin {align*} \int x^3 \sqrt {a+b x^2} \left (A+B x^2\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int x \sqrt {a+b x} (A+B x) \, dx,x,x^2\right )\\ &=\frac {1}{2} \text {Subst}\left (\int \left (\frac {a (-A b+a B) \sqrt {a+b x}}{b^2}+\frac {(A b-2 a B) (a+b x)^{3/2}}{b^2}+\frac {B (a+b x)^{5/2}}{b^2}\right ) \, dx,x,x^2\right )\\ &=-\frac {a (A b-a B) \left (a+b x^2\right )^{3/2}}{3 b^3}+\frac {(A b-2 a B) \left (a+b x^2\right )^{5/2}}{5 b^3}+\frac {B \left (a+b x^2\right )^{7/2}}{7 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 56, normalized size = 0.77 \begin {gather*} \frac {\left (a+b x^2\right )^{3/2} \left (-14 a A b+8 a^2 B+21 A b^2 x^2-12 a b B x^2+15 b^2 B x^4\right )}{105 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 96, normalized size = 1.32
method | result | size |
gosper | \(-\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}} \left (-15 b^{2} B \,x^{4}-21 A \,b^{2} x^{2}+12 B a b \,x^{2}+14 a b A -8 a^{2} B \right )}{105 b^{3}}\) | \(53\) |
trager | \(-\frac {\left (-15 B \,x^{6} b^{3}-21 A \,b^{3} x^{4}-3 B a \,b^{2} x^{4}-7 A a \,b^{2} x^{2}+4 B \,a^{2} b \,x^{2}+14 A \,a^{2} b -8 B \,a^{3}\right ) \sqrt {b \,x^{2}+a}}{105 b^{3}}\) | \(77\) |
risch | \(-\frac {\left (-15 B \,x^{6} b^{3}-21 A \,b^{3} x^{4}-3 B a \,b^{2} x^{4}-7 A a \,b^{2} x^{2}+4 B \,a^{2} b \,x^{2}+14 A \,a^{2} b -8 B \,a^{3}\right ) \sqrt {b \,x^{2}+a}}{105 b^{3}}\) | \(77\) |
default | \(B \left (\frac {x^{4} \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{7 b}-\frac {4 a \left (\frac {x^{2} \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{5 b}-\frac {2 a \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{15 b^{2}}\right )}{7 b}\right )+A \left (\frac {x^{2} \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{5 b}-\frac {2 a \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{15 b^{2}}\right )\) | \(96\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 90, normalized size = 1.23 \begin {gather*} \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} B x^{4}}{7 \, b} - \frac {4 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} B a x^{2}}{35 \, b^{2}} + \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} A x^{2}}{5 \, b} + \frac {8 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} B a^{2}}{105 \, b^{3}} - \frac {2 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} A a}{15 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.35, size = 75, normalized size = 1.03 \begin {gather*} \frac {{\left (15 \, B b^{3} x^{6} + 3 \, {\left (B a b^{2} + 7 \, A b^{3}\right )} x^{4} + 8 \, B a^{3} - 14 \, A a^{2} b - {\left (4 \, B a^{2} b - 7 \, A a b^{2}\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{105 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 162 vs.
\(2 (65) = 130\).
time = 0.15, size = 162, normalized size = 2.22 \begin {gather*} \begin {cases} - \frac {2 A a^{2} \sqrt {a + b x^{2}}}{15 b^{2}} + \frac {A a x^{2} \sqrt {a + b x^{2}}}{15 b} + \frac {A x^{4} \sqrt {a + b x^{2}}}{5} + \frac {8 B a^{3} \sqrt {a + b x^{2}}}{105 b^{3}} - \frac {4 B a^{2} x^{2} \sqrt {a + b x^{2}}}{105 b^{2}} + \frac {B a x^{4} \sqrt {a + b x^{2}}}{35 b} + \frac {B x^{6} \sqrt {a + b x^{2}}}{7} & \text {for}\: b \neq 0 \\\sqrt {a} \left (\frac {A x^{4}}{4} + \frac {B x^{6}}{6}\right ) & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.19, size = 73, normalized size = 1.00 \begin {gather*} \frac {15 \, {\left (b x^{2} + a\right )}^{\frac {7}{2}} B - 42 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} B a + 35 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} B a^{2} + 21 \, {\left (b x^{2} + a\right )}^{\frac {5}{2}} A b - 35 \, {\left (b x^{2} + a\right )}^{\frac {3}{2}} A a b}{105 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.29, size = 76, normalized size = 1.04 \begin {gather*} \sqrt {b\,x^2+a}\,\left (\frac {B\,x^6}{7}+\frac {8\,B\,a^3-14\,A\,a^2\,b}{105\,b^3}+\frac {x^4\,\left (21\,A\,b^3+3\,B\,a\,b^2\right )}{105\,b^3}+\frac {a\,x^2\,\left (7\,A\,b-4\,B\,a\right )}{105\,b^2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________